package com.bayair.doctor.widget;

import android.content.Context;
import android.graphics.drawable.Drawable;

import com.bayair.doctor.R;
import com.hjq.bar.style.TitleBarNightStyle;

/**
 *  仿QQ渐变色title
 */
public class QQTitleBarStyle extends TitleBarNightStyle {

    public QQTitleBarStyle(Context context) {
        super(context);
    }

    @Override
    public Drawable getBackground() {
        return getDrawable(R.drawable.shape_title_gradient_bg);
    }

    @Override
    public int getTitleColor() {
        return super.getTitleColor();
    }

    @Override
    public Drawable getLeftBackground() {
        return null;
    }


    @Override
    public Drawable getRightBackground() {
        return null;
    }


    @Override
    public float getTitleSize() {
        return sp2px(18);
    }

    @Override
    public float getLeftSize() {
        return sp2px(18);
    }

    @Override
    public float getRightSize() {
        return sp2px(18);
    }

    @Override
    public int getDrawablePadding() {
        return dp2px(14);
    }
}
